<!--
 * @Description: 
 * @Author:  huangshuai
 * @Date: 2023-10-16 16:29:27
 * @LastEditTime: 2023-10-18 17:16:08
 * @LastEditors: huangshuai 
-->
<template>
  <el-dialog v-model="dialogVisible" title="举报内容详情" width="40%">
    <el-card class="box-card"
      ><div>被举报内容：{{ content }}</div>
    </el-card>
    <el-card class="box-card" style="margin-top: 30px">
      <div>用户申请理由：{{ userExplain }}</div>
    </el-card>
  </el-dialog>
</template>

<script setup lang="ts">
import { ref } from "vue";

const dialogVisible = ref<boolean>(false);
const content = ref<string>("");
const userExplain = ref<string>("");
const showDialog = (data: any) => {
  userExplain.value = data.userExplain;
  content.value = data.content;
  console.log(data, "data");

  dialogVisible.value = true;
};
defineExpose({
  showDialog,
});
</script>

<style scoped lang="less">
.box-card {
  word-wrap: break-word;
}
</style>
